package vn.edu.uit.wifi_transfering;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	Button btnConfigure;
	Button btnTransfer;
	Button btnExit;	
	
	TCPClient _client;
	DBConnection db;
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		db = new DBConnection(this);
		
		btnConfigure = (Button) findViewById(R.id.btnConfigure);
		btnTransfer = (Button) findViewById(R.id.btnTransfer);
		btnExit = (Button) findViewById(R.id.btnExit);

		btnConfigure.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				Intent intentConfigure = new Intent(MainActivity.this,
						Configuration.class);
				startActivity(intentConfigure);
			}
		});

		btnTransfer.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				Intent instentTransfer = new Intent(MainActivity.this, Transferation.class);								
				startActivity(instentTransfer);				
			}
		});

		btnExit.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				finish();
			}
		});

	}	
	
	
}
